<?php
/**
 * 用户逻辑层
 *
 */

namespace App\Biz;

use App\Utils\Log;

class AdminRole extends Base
{
    /**
     * 获取所有栏目下的权限
     * @param string $menu_lists
     * @param $action_lists
     * @return array
     */
    public static function getUserRole(string $menu_lists,$action_lists){
        $menu_list = AdminMenu::getMenu($menu_lists);
        $action_list = AdminAction::getAction($action_lists);
        $list = array_merge($menu_list,$action_list);
        return AdminMenu::generateMenuTree($list);
    }


}

